package samples.examples.big_ben.application ;

import divtastic.js.DisplayDiv ;
import divtastic.js.application.views.WindowView ;

import samples.examples.big_ben.views.BigBenView ;


class Controller
{
    
    
    private var _holder :DisplayDiv;
    
    
    
    public function new( holder_: DisplayDiv )
    {
        
        _holder                 = holder_ ;
        var clockWindow         = new DisplayDiv() ;
        _holder.addChild( clockWindow ) ;
        var windowView          = new WindowView( clockWindow, 'Big Ben', 49, 129, 517 + 20, 517 + WindowView.headerHeight + 20, '#9d9e6a' ) ;
        new BigBenView( clockWindow, windowView ) ;
        
    }
    
    
}